/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.chatapp;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URI;
import java.awt.Desktop;
/**
 *
 * @author maggiesd
 */
public class PruebaSlideshow {
    
    public PruebaSlideshow(){
        
    }
    
    public static void openURL (String url){
        
        try{
        java.awt.Desktop myNewBrowserDesktop = java.awt.Desktop.getDesktop();
        java.net.URI myNewLocation = new java.net.URI(url);
        myNewBrowserDesktop.browse( myNewLocation );
        } catch (Exception e){
            
        }
        
    }

    public static void main(String[] args){
        
        String url="file:///Users/maggiesd/Desktop/html/untitled.html?i1=flower1.jpg&i2=flower2.jpg&i3=flower3.jpg&i4=flower4.jpg";
        openURL(url);
    }
}
